/* エニアグラム診断 - スタイル（hoyme.jp/eniatest 再現） */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: #2d3748;
  line-height: 1.5;
  background: #fff;
}
img { max-width: 100%; height: auto; }
a { color: #3490dc; }

/* ===== Header ===== */
.header {
  background-color: #fff;
  background-image: url(https://image.cdn2.seaart.me/spark/static/baf706b2-28d1-498c-ae2e-a947f0e86ee6/278a9fd12368a3e07f1e86809d215e04.png);
  background-repeat: repeat-x;
  background-size: 375px 5px;
  background-position: bottom;
  padding-bottom: 5px;
  padding-left: 1rem;
  padding-right: 1rem;
  position: relative;
}
.lang-control {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
}
.lang-control .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.lang-control select {
  font-size: 12px;
  padding: 4px 6px;
  border: 1px solid #cbd5e0;
  border-radius: 4px;
  background: #fff;
  color: #333;
  cursor: pointer;
  font-weight: 600;
}
.lang-control select:hover { border-color: #a0aec0; }
.container {
  width: 100%;
  max-width: 672px;
  margin-left: auto;
  margin-right: auto;
}
.navbar { text-align: center; padding: 1rem 0 1.25rem; }
.header-logo a { display: inline-block; height: 32px; }
.header-logo img { height: 32px; width: auto; }
.header-text { margin-top: 6px; color: #333; font-size: .75rem; }

/* ===== Breadcrumb ===== */
.breadcrumb { padding: .25rem 1rem; }
.breadcrumb-wrapper {
  margin-left: auto;
  margin-right: auto;
  max-width: 672px;
  padding-left: 1rem;
  padding-right: 1rem;
  overflow: hidden;
  overflow-x: auto;
  white-space: nowrap;
}
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; }
.breadcrumb li { font-size: .75rem; }
.breadcrumb li + li::before { content: "›"; margin: 0 .35rem; color: #a0aec0; }
.breadcrumb a { color: #3490dc; text-decoration: none; }

/* ===== Layout ===== */
.p-4 { padding: 1rem; }
.pt-0 { padding-top: 0; }
.max-w-2xl { max-width: 672px; }
.container.max-w-2xl { max-width: 672px; }

/* ===== Article ===== */
.article-body { color: #2d3748; line-height: 1.5; }
.article-body .h1,
.article-body .h2,
.article-body .h3,
.article-body .h4,
.article-body .h5,
.article-body .h6 { margin-bottom: 1rem; font-weight: 600; line-height: 2; color: #000; }
.article-body .h1:not(:first-child),
.article-body .h2:not(:first-child),
.article-body .h3:not(:first-child) { margin-top: 1rem; }
.article-body .h1 { font-size: 1.5rem; margin-top: 0; }
.article-body .h2 {
  font-size: 1.125rem;
  padding: 0 .75rem;
  border-left: 4px solid #000;
  background-color: #edf2f7;
}
.article-body .h3 { font-size: 1rem; border-bottom: 1px solid #000; border-style: dashed; }
.article-body p { margin: 0 0 1rem; }
.article-body ul { padding-left: 1.4em; margin: 0 0 1rem; }
.article-body li { margin-bottom: .25rem; }

.text-center { text-align: center !important; }
.inline-block { display: inline-block !important; }
.image { margin-bottom: 1rem; text-align: center; }
.text-red-500 { color: #f56565 !important; }
.text-black { color: #000 !important; }
.text-xs { font-size: .75rem !important; }
.font-bold { font-weight: 700 !important; }
.underline { text-decoration: underline !important; }
.hover\:text-blue-500:hover { color: #4299e1 !important; }
.border { border: 1px solid #cbd5e0; padding: .15rem .4rem; }

/* ===== Question table ===== */
.article-body .shindan_table {
  width: 100%;
  border: 1px solid #cbd5e0;
  border-collapse: collapse;
  margin-bottom: 1rem;
  font-size: .875rem;
}
.article-body .shindan_table tr { border: 1px solid #cbd5e0; }
.article-body .shindan_table tr td { border: 1px solid #cbd5e0; padding: 3px; }
.article-body .shindan_table tr td.L { width: 7%; background-color: #eee; text-align: center; }
.article-body .shindan_table tr td.C { width: auto; }
.article-body .shindan_table tr td.R { width: 6%; text-align: center; }
.article-body .shindan_table input[type=checkbox] { transform: scale(1.15); }

/* ===== Submit / Clear buttons ===== */
.article-body .sindan_submit,
.article-body .shindan_clear {
  height: 30px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2em;
  border: 1px solid #ccc;
  cursor: pointer;
  vertical-align: middle;
}
.article-body .sindan_submit {
  margin-left: 40px;
  margin-bottom: 0;
  width: 200px;
  background: url(https://image.cdn2.seaart.me/spark/static/baf706b2-28d1-498c-ae2e-a947f0e86ee6/7a3f2c895ae42e44c70092ec341f20d5.gif) no-repeat center;
  color: #f30;
}
.article-body .shindan_clear {
  width: 100px;
  background: url(https://image.cdn2.seaart.me/spark/static/baf706b2-28d1-498c-ae2e-a947f0e86ee6/091e14d48f8300f70cc26426e0b3c01d.gif) no-repeat center;
  color: #555;
}

/* ===== Result (win) ===== */
.article-body #win {
  max-width: 480px;
  margin: 0 auto 1rem;
}
.article-body #win::after { content: ""; display: table; clear: both; }
.article-body #win .win01,
.article-body #win .win02 {
  float: left;
  width: 160px;
  height: 120px;
  background: url(https://image.cdn2.seaart.me/spark/static/baf706b2-28d1-498c-ae2e-a947f0e86ee6/39571c1e9340349b2852deef9389892d.gif) no-repeat;
}
.article-body #win .win03 {
  float: right;
  width: 160px;
  height: 120px;
  background: url(https://image.cdn2.seaart.me/spark/static/baf706b2-28d1-498c-ae2e-a947f0e86ee6/39571c1e9340349b2852deef9389892d.gif) no-repeat;
}
.article-body #win .reset { display: block; clear: both; font-size: 1px; height: 1px; line-height: 1px; margin: 0; }
.article-body #win input.win {
  width: 110px;
  height: 20px;
  margin: 12px 20px 0 25px;
  padding: 0;
  font-size: 14px;
  color: #f30;
  font-weight: 700;
  text-align: center;
  line-height: 1.2em;
  border: 1px solid #ccc;
  background: #fff;
}
.article-body #win .type-link { display: block; text-decoration: none; }
.article-body #win .click { margin: 0 0 0 15px; }

/* ===== dcm2 (motivation list) ===== */
.article-body .dcm2 { list-style: none; padding: 0; }
.article-body .dcm2 li {
  margin-bottom: .35rem;
  padding: .4rem .6rem;
  border: 1px solid #cbd5e0;
  background: #f7fafc;
}
.article-body .dcm2 a { text-decoration: none; display: block; }

/* ===== Circle ===== */
.mgr20 { margin-right: 20px; }

/* ===== enneagram_button (type page) ===== */
.enneagram_button {
  color: #fff;
  background-color: #55a32a;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
  padding: 6px;
  width: 100%;
  font-weight: 700;
  box-sizing: border-box;
  position: relative;
  text-decoration: none;
  margin: 1rem 0;
}
.enneagram_button:after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  position: absolute;
  top: calc(50% - 4px);
  right: 20px;
  transform: rotate(45deg);
}

/* ===== Share block (type page) ===== */
.share-block {
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: .25rem;
  background: rgba(255, 255, 255, 0.6);
}
.share-block .share-title { font-weight: 600; text-align: center; margin-bottom: .5rem; }
.share-block .share-row { text-align: center; margin-bottom: .5rem; }
.share-btn {
  display: inline-flex;
  color: #fff;
  font-weight: 700;
  padding: 2px 8px;
  font-size: 14px;
  border-radius: 4px;
  line-height: 1.5;
  margin-right: 4px;
  text-decoration: none;
  cursor: pointer;
  vertical-align: middle;
}
.share-btn:hover { opacity: .85; }
.share-btn.twitter { background-color: #3b94d9; }
.share-btn.facebook { background-color: #3b5998; }
.share-btn.line { background-color: #00c300; }
.share-btn.mail { background-color: #eee; color: #333; }
.copy-btn {
  box-sizing: border-box;
  width: 100%;
  background-color: #eee;
  cursor: pointer;
  color: #333;
  font-weight: 700;
  padding: 2px 8px;
  font-size: 14px;
  border-radius: 4px;
  display: inline-flex;
  justify-content: center;
  line-height: 1.5;
  text-decoration: none;
  border: none;
  margin-bottom: 4px;
}
.share-block textarea {
  width: 100%;
  height: 150px;
  font-size: .8rem;
  border: 1px solid #cbd5e0;
  border-radius: 4px;
  padding: .5rem;
}

/* ===== Back button (type page) ===== */
.back { margin: 0 0 20px; }
.back button {
  width: 50%;
  border: 1px solid #ccc;
  border-radius: 2px;
  background: #f0f0f0;
  text-align: center;
  padding: 10px;
  margin: auto;
  display: block;
  font-size: 20px;
  cursor: pointer;
}
.back button:hover { background: #e2e8f0; }

/* ===== Related types ===== */
.related-grid { display: flex; flex-wrap: wrap; margin: 0 -8px; }
.related-item { width: 50%; padding: 8px; box-sizing: border-box; }
.related-item a { display: block; text-decoration: none; color: #2d3748; }
.related-item a:hover { background: #f7fafc; }
.related-item img { display: block; margin: 0 auto 8px; }
.related-item h4 { margin: 0; font-weight: 700; font-size: .95rem; }
.my-8 { margin-top: 2rem; margin-bottom: 2rem; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }

/* ===== Hero (top.png 置換) ===== */
.hero { padding: 8px 0 16px; }
.hero-circle { max-width: 340px; margin: 0 auto 6px; }
.ennea-circle { width: 100%; height: auto; }
#circle-image { display: block; max-width: 380px; margin: 0 auto 12px; }
.hero-title { display: flex; justify-content: center; flex-wrap: wrap; margin: 12px 0 8px; }
.hero-block {
  color: #fff;
  font-weight: 700;
  padding: 5px 9px;
  margin: 3px;
  border-radius: 5px;
  font-size: 15px;
  white-space: nowrap;
}
.hero-subtitle { text-align: center; font-weight: 600; font-size: 15px; margin-bottom: 14px; color: #2d3748; }
.hero-start {
  display: block;
  width: max-content;
  margin: 0 auto;
  border: 2px solid #3182ce;
  border-radius: 14px;
  color: #2b6cb0;
  font-weight: 700;
  padding: 10px 30px;
  font-size: 17px;
  text-decoration: none;
  background: #fff;
}
.hero-start:hover { background: #ebf8ff; }
.hero-start::after { content: "∨"; margin-left: 8px; }

/* ===== click label (click.gif 置換) ===== */
.click-label {
  display: inline-block;
  background: #ed8936;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.6;
  padding: 2px 10px;
  border-radius: 999px;
  margin: 2px 0 0 15px;
}
.click-label::after { content: "›"; margin-left: 4px; }

/* ===== タイプ詳細カード (result_typeN.png 置換) ===== */
.result-hero-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.result-hero-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f7fafc;
  border-bottom: 1px solid #e2e8f0;
}
.result-hero-type { font-weight: 700; color: #4a5568; }
.result-hero-name { font-weight: 700; font-size: 18px; color: #1a202c; }
.result-hero-body { padding: 10px 16px; }
.result-trait {
  display: inline-flex;
  align-items: center;
  background: #edf2f7;
  border-radius: 999px;
  padding: 4px 12px;
  margin: 4px 6px 4px 0;
  font-size: 13px;
  color: #2d3748;
}
.result-trait::before { content: "✔"; color: #38a169; margin-right: 5px; font-weight: 700; }

/* ===== 関連タイプカード (catch_typeN.png 置換) ===== */
.catch-card a { display: block; text-decoration: none; color: #2d3748; }
.catch-visual {
  border-radius: 8px;
  padding: 18px 10px;
  text-align: center;
  color: #fff;
  font-weight: 700;
  margin-bottom: 8px;
}
.catch-num { font-size: 20px; opacity: .9; }
.catch-name { font-size: 15px; }

/* ===== Footer ===== */
.footer {
  background-image: url(https://image.cdn2.seaart.me/spark/static/baf706b2-28d1-498c-ae2e-a947f0e86ee6/278a9fd12368a3e07f1e86809d215e04.png);
  background-repeat: repeat-x;
  background-size: 375px 5px;
  background-position: top;
  padding: 1rem;
  margin-top: 2rem;
}
.footer .footer-top { display: flex; align-items: center; padding: 1rem 0; }
.footer .footer-top img { height: 32px; }
.footer .footer-top p { margin: 0 0 0 1rem; }
.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1rem 0 0;
  margin: 0;
}
.footer-links li { padding: 0 .9rem; margin-bottom: .5rem; }
.footer-links a { color: #2d3748; font-weight: 700; text-decoration: none; }
.footer-links a:hover { color: #718096; }
.copyright { padding: 1rem 0 .5rem; text-align: center; color: #a0aec0; font-size: .75rem; }
.text-gray-800 { color: #2d3748; }

/* ===== Responsive ===== */
@media (max-width: 540px) {
  .article-body .sindan_submit { margin-left: 0; width: 60%; }
  .article-body .shindan_clear { width: 30%; }
  .article-body #win .win01,
  .article-body #win .win02,
  .article-body #win .win03 {
    float: left;
    width: 48%;
    background-size: 100% 100%;
    margin: 1%;
  }
  .article-body #win input.win { width: 70%; margin: 12px auto 0; display: block; }
  .article-body #win .click { margin: 0 auto; display: block; }
  .article-body .shindan_table { font-size: .8rem; }
  .back button { width: 80%; }
}
